<div class='container-fluid'>
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">流量套餐</h1>
        </div>
    </div>


    <form role="form" accept-charset="UTF-8" action="{{path}}" method="{{method}}">
        <div class='row'>
            <div class="col-lg-6">
                <div class="form-group">
                    <label>名字</label>
                    <input class="form-control" placeholder="input name" name="name" value="{{ trafficPlan.name }}">
                </div>
                <div class="form-group">
                    <label>花费</label>
                    <input class="form-control" placeholder="input cost" name="cost" type='text'
                           value="{{ trafficPlan.cost }}">
                </div>
                <div class="form-group">
                    <label>排序</label>
                    <input class="form-control" placeholder="input sortNum" name="sortNum" type='number' min="0"
                           step='1' value="{{ trafficPlan.sortNum }}">
                </div>
                <div class="form-group">
                    <label>提供商</label>
                    {{ selectTag providerOptions providerCollection trafficPlan.providerId }}
                </div>
                <div class="form-group">
                    <label>分组</label>
                    {{ selectTag trafficgroupsOptions trafficgroupsCollection trafficPlan.trafficGroupId }}
                </div>
                <div class="form-group">
                    <label>流量币</label>
                    <input class="form-control" placeholder="输入流量币" name="integral" type='number' min="0" step='1'
                           value="{{ trafficPlan.integral }}">
                </div>
            </div>
            <div class="col-lg-6">
                <div class="form-group">
                    <label>value</label>
                    <input class="form-control" placeholder="input value" name="value" type='number' min="0" step='1'
                           value="{{ trafficPlan.value }}">
                </div>
                <div class="form-group">
                    <div class="checkbox" style="padding-top: 20px;">
                        <label>
                            <input type="checkbox" name="display" {{ isChecked trafficPlan.display  }} >显示
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label>type</label>
                    {{ selectTag typeOptions typeCollection trafficPlan.type }}
                </div>
                <div class="form-group">
                    <label>bid</label>
                    <input class="form-control" placeholder="input bid" name="bid" type='text'
                           value="{{ trafficPlan.bid }}">
                </div>

                <div class="form-group">
                    <label>进货价</label>
                    <input class="form-control" placeholder="input purchase price" name="purchasePrice" type='text'
                           value="{{ trafficPlan.purchasePrice }}">
                </div>
                <div class="form-group">
                    <label>醒目提示（建议字数为2个字）</label>
                    <input class="form-control" placeholder="input tip" name="tip" type='text'
                           value="{{ trafficPlan.tip }}">
                </div>
            </div>
        </div>

        <div class="row">
            <div class="col-lg-11">
                <button type="submit" class="pull-right btn btn-primary">提 交</button>
            </div>
        </div>

    </form>

</div>